/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cmti.skeleton.dto;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 用作easyui tree控件的节点实体
 *
 * @author Danny Lee
 */
public class TreeNode implements Serializable{

    private long id;
    private String text;
    private String state = "open";
    private boolean check;
    private Map<String, Object> attributes;
    private List<TreeNode> children;
    
    private String iconCls;

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }


    public TreeNode() {
    }

    public TreeNode(long id, String text, boolean check, Map<String, Object> attributes) {
        this.id = id;
        this.text = text;
        this.check = check;
        this.attributes = attributes;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }

    public Map<String, Object> getAttributes() {
        return attributes;
    }

    public void setAttributes(Map<String, Object> attributes) {
        this.attributes = attributes;
    }

    public boolean isCheck() {
        return check;
    }

    public void setCheck(boolean check) {
        this.check = check;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
}
